<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style type="text/css">
    div
    {
        width: 500px;
        border: 1px solid red;
        /*
        textt-align 文本的水平对齐
        可选值：
        left 左对齐
        right 右对齐
        center 居中对齐
        justify 两端对齐
        */
        /*text-align:justify;*/
        font-size: 50px;
    }
    span
    {
        font-size: 20px;
        border: 1px solid blue;
        /*
        vertical-align 设置元素垂直对齐的方式
        可选值：
        baseline 默认值 基线对齐
        top 顶部对齐
        bottom 底部对齐
        middle 居中对齐
        */
        vertical-align: top;
    }
    #img
    {
        height: 300px;
        width: 300px;
        /*图片跟红线有距离，如果需要解决这个现象*/
        vertical-align: bottom;
    }
    p
    {
        border: 1px red solid;
    }
    </style>
</head>
<body>
    <div>
        今天天气Hello<span>真不错Hello</span>
    </div>
    <!--<div>
        Lorem ipsum dolor sit amet consectetur adipisicing elit. Totam aliquid corporis error quibusdam illum. Saepe veritatis ad aliquam commodi dignissimos sed corrupti provident in mollitia, numquam, vero iure tempore suscipit.
    </div>-->
    <p>
        <img src="../../HTML-JS资料/伊蕾娜素材EN/img02.jpg" id="img">
    </p>
</body>
</html>